/*
Copyright (C) Ariff Ehsan, Abdul Hadi Fikri

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

/*  Author : Ariff Ehsan
 *  Date   : June 22, 2009
 */


#ifndef __LEDS4_H__
#define __LEDS4_H__


#include <system.h>


#define LEDS4_PORT   PORTC
#define LEDS4_DDR    DDRC

#define LEDS4_LED0   PC1
#define LEDS4_LED1   PC2
#define LEDS4_LED2   PC3
#define LEDS4_LED3   PC4

#define LEDS4_OREN   PC1
#define LEDS4_YELLOW PC2
#define LEDS4_GREEN  PC3
#define LEDS4_RED    PC4

/* default leds is connected to LSB pins of the port.
 * to change it to MSB pins, define the macro.
 */
//#define LEDS4_MSB


void LEDS4_init(void);

void LEDS4_on(uint8_t);
void LEDS4_off(uint8_t);
void LEDS4_toggle(uint8_t);

void LEDS4_set(uint8_t);


#endif // __LEDS4_H__
